package model.data.interfaces;

/**
 * Interface indicating that data stored in classes that implement this interface
 * can be written to the database.
 */
public interface IWriteableToDB {

	/**
	 * Writes the data stored in the object to the database.
	 * <p>
	 * Needs to be overridden by every class implementing this interface.
	 */
	public boolean writeToDB();
	
	/**
	 * Writes changed data stored in the object to the database.
	 * <p>
	 * Needs to be overridden by every class implementing this interface.
	 */
	public boolean writeUpdateToDB();
}
